From: Andrew Zaech Date: Wed, 9 Aug 2023 18:07:43 +0000 (+0000) Subject: extensionBase: Fix issue in lookupByURL() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~337^2~1^2~3 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=09525ece8c95450d6dee2575729572b10f769a11;p=gnome-shell.git extensionBase: Fix issue in lookupByURL() The lookupByUUID() implementations in the subtypes return null when the lookup failed, not undefined. Part-of: --- diff --git a/js/extensions/sharedInternals.js b/js/extensions/sharedInternals.js index 524ec3985..76f488b7f 100644 --- a/js/extensions/sharedInternals.js +++ b/js/extensions/sharedInternals.js @@ -28,7 +28,7 @@ export class ExtensionBase { const dirName = GLib.path_get_basename(path); const extension = this.lookupByUUID(dirName); - if (extension !== undefined) + if (extension !== null) return extension; } while (path !== '/');